python -m pip install --upgrade pip --user

python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ openai --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ transformers --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ safetensors --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ opencc-python-reimplemented --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ fastapi --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ "uvicorn[standard]" --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ python-multipart --user

rem 以下命令需要手动copy到管理员命令行执行

rem powershell.exe -Command "Set-ExecutionPolicy AllSigned"

rem powershell.exe -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"

rem choco install ffmpeg

python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ setuptools-rust --user
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ openai-whisper --user

pause
